package com.jwsoft.manager.core.gateway.controller.bigScreen;

import com.bifang.engine.assistant.core.domain.AppResponse;
import com.bifang.engine.protect.core.annotation.NoSignCrypto;
import com.jwsoft.manager.common.vo.bigScreen.analysisXq.SchoolOverviewXqQueryVO;
import com.jwsoft.manager.common.vo.bigScreen.analysisXq.SchoolOverviewXqVO;
import com.jwsoft.manager.common.vo.bigScreen.analysisZbXq.SchoolInfoQueryVO;
import com.jwsoft.manager.common.vo.bigScreen.analysisZbXq.SchoolInfoVO;
import com.jwsoft.manager.core.integration.bigScreen.AnalysisZbXqIntegration;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "/doc/api/xq")
@Tag(name = "大屏学区接口", description = "大屏学区接口")
public class AnalysisZbXqController {
    @Autowired
    private AnalysisZbXqIntegration analysisZbXqIntegration;
    @Operation(summary = "总览学校信息",description = "总览学校信息")
    @PostMapping(value = "/EduAnalysisZbXq0001", produces = "application/json;charset=UTF-8")
    @NoSignCrypto
    public AppResponse<SchoolInfoVO> getSchoolInfo(@RequestBody @Validated SchoolInfoQueryVO vo) {
        return AppResponse.successData(analysisZbXqIntegration.getSchoolInfo(vo));
    }
}
